#!/bin/sh

NETMAJ_LIB=.
export NETMAJ_LIB
cp server.pf new.pf 
cp server.pf old.pf 

if [ "$1" != "" ]
then
MAX=$1
else
MAX=10
fi

CNT=0

while [ $CNT != $MAX ]
do
	./xstand
	CNT=`expr $CNT + 1`
done  > log
netmaj -S new > info


awk '
/total game/{ game = $4;}
/total money/{ printf("strongness is %d\n",$4/game);}' < info



